{extend name="$adminPage"}

{block name="content"}
设置页面body底部的js代码
<pre class="layui-code">{literal}{extend name="$adminPage"}{/literal}

{literal}{block name="content"}{/literal}
    设置页面head内的js代码
{literal}{/block}{/literal}

{literal}{block name="script"}{/literal}
{php}
    echo htmlspecialchars("<script type=\"text/javascript\">
    layui.use([\"jquery\",\"yunj\"],function(){
        let doc = document;
        let $ = layui.jquery;
        $(doc).ready(function () {
            yunj.msg(\"弹出底部提示\");
        });
    });
</script>");
{/php}

{literal}{/block}{/literal}</pre>
{/block}

{block name="script"}
<script type="text/javascript">
    layui.use(["jquery","yunj"],function(){
        let doc = document;
        let $ = layui.jquery;
        $(doc).ready(function () {
            yunj.msg("弹出底部提示");
        });
    });
</script>
{/block}